package com.atguigu.gulimall.order.feign;

import com.atguigu.gulimall.order.vo.MemberAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @title: MemberFeignService
 * @Author syh
 * @Date: 2022/7/12 18:19
 * @Version 1.0
 */

@FeignClient("gulimall-member")
public interface MemberFeignService {

    /**
     * 根据会员id获取对应会员的收货地址列表
     *
     * @param memberId
     * @return
     */
    @GetMapping("/member/memberreceiveaddress/{memberId}/address")
    List<MemberAddressVo> getAddress(@PathVariable("memberId") Long memberId);
}
